package com.dx.wlmq.domain;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;


/**
 * @ClassName SysUser
 * @Description
 * @Author 12994
 * @Date 2024/10/17 13:04
 * @Version 1.0
 **/

@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class SysUser {
    /*
    sys_user_id          bigint auto_increment primary key,
    sys_user_name        varchar(64)  null,
    sys_user_password    varchar(64)  null,
    sys_user_phone       varchar(32)  null,
    sys_user_email       varchar(64)  null,
    sys_user_idnumber    varchar(64)  null,
    sys_user_address     varchar(256) null,
    system_user_datetime datetime     null comment '注册时间',
    sys_user_score       bigint       null comment '用户积分'
    */
    // 对应基本类型的属性需要使用包装类型
    private Long sysUserId;
    private String sysUserName;
    private String sysUserPassword;
    private String sysUserPhone;
    private String sysUserEmail;
    private String sysUserIdnumber;
    private String sysUserAddress;
    // 设置时间序列化(fastjson)/反序列化(jackson)的格式
    // 以及反序列化的时区
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date systemUserDatetime;
    private Long sysUserScore;
}
